<?php
    $file="php1.php";
    //读取整个文件，返回字节
    $num=readfile($file);
    echo "\n 大小为：". $num;
    echo "\n -------\n";
    //按行读取，返回数组
    $array=file($file);
    foreach($array as $value){
        echo $value."\n";
    }
    echo "\n-----\n";
    echo file_get_contents($file);
?>